<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-payAccoutCash-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">流水类型：</label>
				<div class="col-sm-8">
					<select name="cashType" class="form-control m-b" th:with="type=${@dict.getType('pay_cash_type')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建用户：</label>
				<div class="col-sm-8">
					<input id="createId" name="createId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">关联用户：</label>
				<div class="col-sm-8">
					<input id="otherId" name="otherId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">币种：</label>
				<div class="col-sm-8">
					<input id="currency" name="currency" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">金额：</label>
				<div class="col-sm-8">
					<input id="usdtNum" name="usdtNum" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">法币金额：</label>
				<div class="col-sm-8">
					<input id="currencyNum" name="currencyNum" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">商户入金金额：</label>
				<div class="col-sm-8">
					<input id="aerchantNum" name="aerchantNum" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">数量：</label>
				<div class="col-sm-8">
					<input id="usdtNo" name="usdtNo" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">手续费：</label>
				<div class="col-sm-8">
					<input id="plantFee" name="plantFee" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">手续费率：</label>
				<div class="col-sm-8">
					<input id="plantFeeRate" name="plantFeeRate" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">代理抽成：</label>
				<div class="col-sm-8">
					<input id="agentFee" name="agentFee" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">代理抽成费率：</label>
				<div class="col-sm-8">
					<input id="agentFeeRate" name="agentFeeRate" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">兑商抽成：</label>
				<div class="col-sm-8">
					<input id="acceptFee" name="acceptFee" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">商户入金汇率上调：</label>
				<div class="col-sm-8">
					<input id="aerchantFeeRate" name="aerchantFeeRate" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">商户抽成：</label>
				<div class="col-sm-8">
					<input id="aerchantFee" name="aerchantFee" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">火币汇率：</label>
				<div class="col-sm-8">
					<input id="usdtRate" name="usdtRate" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">入金汇率：</label>
				<div class="col-sm-8">
					<input id="plantRate" name="plantRate" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">流水状态：</label>
				<div class="col-sm-8">
					<select name="cashState" class="form-control m-b" th:with="type=${@dict.getType('pay_cash_state')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">更新时间：</label>
				<div class="col-sm-8">
					<input id="updateTime" name="updateTime" class="form-control time-input" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "pay/accout/cash"
		$("#form-payAccoutCash-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-payAccoutCash-add').serialize());
	        }
	    }
	</script>
</body>
</html>
